// 需要鉴权的业务路由
import { RouteRecordRaw } from 'vue-router';
import Layout from '@/layout/index.vue';

const asyncRoutes: Array<RouteRecordRaw> = [
  {
    path: '/common-tools',
    component: Layout,
    redirect: '/home',
    meta: { title: '首页', icon: '' },
    children: [
      {
        path: '/home',
        meta: { title: '系统首页', icon: '' },
        name: 'Home',
        component: () => import('@/views/Home/index.vue'),
      },
      {
        path: '/I18nGenerator',
        name: 'I18nGenerator',
        meta: { title: 'I18n国际化工具', icon: '' },
        component: () => import('@/views/I18nGenerator/index.vue'),
      },
    ],
  },
  // {
  //   path: '/I18nGenerator',
  //   component: Layout,
  //   children: [
  //     {
  //       path: '/common-tools/I18nGenerator',
  //       name: 'I18nGenerator',
  //       component: () => import('@/views/I18nGenerator/index.vue'),
  //     },
  //   ],
  // },
  // {
  //   path: '/common-tools/process',
  //   name: 'process',
  //   meta: {
  //     title: 'Template configuration process',
  //     icon: '',
  //   },
  //   component: () => import('@/views/example/MarkdownPage.vue'),
  // },
];

export default asyncRoutes;
